//
// Created by syj on 2023/7/26.
//

#ifndef LOGGER_TEST_LOGGER_H
#define LOGGER_TEST_LOGGER_H

#include "mlog_impl.h"

#define Logger_Init(file) \
    mlogimpl::Logger::Instance()->Init(file)
#define Logger_Initial(file,app) \
    mlogimpl::Logger::Instance()->Init(file,app)

#define Logger_Trace(...) \
    mlogimpl::Logger::Instance()->Trace(__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__)
#define Logger_Debug(...) \
    mlogimpl::Logger::Instance()->Debug(__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__)
#define Logger_Info(...) \
    mlogimpl::Logger::Instance()->Info(__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__)
#define Logger_Warn(...) \
    mlogimpl::Logger::Instance()->Warn(__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__)
#define Logger_Error(...) \
    mlogimpl::Logger::Instance()->Error(__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__)
#define Logger_Critical(...) \
    mlogimpl::Logger::Instance()->Critical(__FILE__,__LINE__,__FUNCTION__,__VA_ARGS__)

#endif //LOGGER_TEST_LOGGER_H
